import request from '@/config/axios'

// 微博评论 VO
export interface WeiboCommentsShowVO {
  id: number // 主键
  syncDate: Date // 同步时间
  weiboUid: number // 微博用户ID
  weiboId: number // 微博ID
  createdAt: Date // 评论创建时间
  commentId: number // 评论的ID
  text: string // 评论的内容
  source: string // 评论的来源
  authorId: number // 评论作者id
  screenName: string // 评论作者昵称
  profileImageUrl: string // 评论作者头像地址
}

// 微博评论 API
export const WeiboCommentsShowApi = {
  // 查询微博评论分页
  getWeiboCommentsShowPage: async (params: any) => {
    return await request.get({ url: `/integration/weibo-comments-show/page`, params })
  },

  // 查询微博评论详情
  getWeiboCommentsShow: async (id: number) => {
    return await request.get({ url: `/integration/weibo-comments-show/get?id=` + id })
  },

  // 新增微博评论
  createWeiboCommentsShow: async (data: WeiboCommentsShowVO) => {
    return await request.post({ url: `/integration/weibo-comments-show/create`, data })
  },

  // 修改微博评论
  updateWeiboCommentsShow: async (data: WeiboCommentsShowVO) => {
    return await request.post({ url: `/integration/weibo-comments-show/update`, data })
  },

  // 删除微博评论
  deleteWeiboCommentsShow: async (id: number) => {
    return await request.get({ url: `/integration/weibo-comments-show/delete?id=` + id })
  },

  // 导出微博评论 Excel
  exportWeiboCommentsShow: async (params) => {
    return await request.download({ url: `/integration/weibo-comments-show/export-excel`, params })
  }
}